const { merge } = require('webpack-merge')
const baseConfig = require('./webpack.config')
const VueSsrServerPlugin = require('vue-server-renderer/server-plugin')

module.exports = merge(baseConfig, {
  entry: {
    server: './entry/server.entry.js'
  },
  output: {
    libraryTarget: 'commonjs2'
  },
  plugins: [
    new VueSsrServerPlugin()
  ],
  target: 'node'
})